package com.liuxy.javautil;

import java.io.Closeable;
import java.io.IOException;

public class IOUtil {
	private static final String TAG = "MyTools.IOUtil";

	public static void close(Closeable o){
		if (o!=null) {
			try {
				o.close();
				o=null;
			} catch (IOException e) {
				ExceptionUtil.printHandle(e);
			}
		}
	}
	
	private IOUtil(){
		/* cannot be instantiated */
		throw new UnsupportedOperationException(TAG+" cannot be instantiated");
	}
}
